
package com.benimetum.items;

/**
 *
 * @author Ethem Cem Ozkan
 * @email ethemcem.ozkan@gmail.com
 * No 07110604
 */
public class Student implements Person
{
    private String email;
    private String id;
    private String firstName;
    private String lastName;
    private String profilePicture;
    private String status;
    private Teacher Mentor;

    public Student(String email, String id, String firstName, String lastName, String status,String profilePicture, Teacher Mentor) {
	  this.email = email;
	  this.id = id;
	  this.firstName = firstName;
	  this.lastName = lastName;
	  if(status.equals("null"))
		this.status = null;
	  else
		this.status = status;
	  this.profilePicture = profilePicture;
	  this.Mentor = Mentor;
    }

    @Override
    public String getEmail() {
	  return email;
    }

    public String getStatus() {
	  return status;
    }

    @Override
    public String getFirstName() {
	  return firstName;
    }

    @Override
    public String getId() {
	  return id;
    }

    @Override
    public String getLastName() {
	  return lastName;
    }

    public Teacher getMentor() {
	  return Mentor;
    }

    @Override
    public String getProfilePicture() {
	  return profilePicture;
    }

    public void setStatus(String status) {
	  this.status = status;
    }

    @Override
    public void setEmail(String email) {
	  this.email = email;
    }

    @Override
    public void setFirstName(String firstName) {
	  this.firstName = firstName;
    }

    @Override
    public void setId(String id) {
	  this.id = id;
    }

    @Override
    public void setLastName(String lastName) {
	  this.lastName = lastName;
    }

    public void setMentor(Teacher Mentor) {
	  this.Mentor = Mentor;
    }

    @Override
    public void setProfilePicture(String profilePicture) {
	  this.profilePicture = profilePicture;
    }

    @Override
    public boolean isTeacher() {
	  return id.startsWith("t");
    }
    
    @Override
    public String getFullName() {
	  return firstName+" "+lastName;
    }
}
